package com.gogant.spider.demo.oschina;

import com.gogant.spider.http.Selector;

// path= /div?class=aaa&id=bbb/a#0
// value=标签内容:[text,html,trimText,allText] 或者 属性值:[href,class...alt]
// setter = com.xxx.MyFieldSetter implements FieldSetter 自定义属性Setter
public class Article {
	@Selector(path = "/div?class=news-content/h1", value = "trimText")
	String title;

	@Selector(path = "/div?class=news-content/div?class=from/a#1", value = "trimText")
	String author;

	@Selector(path = "/div?class=news-content/div?class=from/span#0", value = "trimText")
	String pubDate;

	@Selector(path = "/div?class=news-content/div#1", value = "html")
	String content;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPubDate() {
		return pubDate;
	}

	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
}
